<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo lang_show('admin_system');?></title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<link href="main.css" rel="stylesheet" type="text/css" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script src="../script/jquery-1.4.4.min.js" type=text/javascript></script>
</head>
<body>
<div class="bigbox">
  <{if $smarty.get.act=='default'}>
  <div class="bigboxhead">
      <div class="itemtitle">
          <h3>默认SEO</h3>
          <ul>
              <li><a href="/admin/seo_manage.php"><span>SEO管理</span></a></li>
          </ul>
      </div>
  </div>
  <form action="" method="post">
  <input type="hidden" name="act" value="save_default">
  <input type="hidden" name="seo_id" value="<{$default.id}>">
      <table width="100%" cellspacing="0">
        <tr>
          <td align="left">Title(标题)</td>
          <td align="left" ><input name="d_title" type="text" id="d_title" class="text" value="<{$default.title}>">
          </td>
        </tr>
        <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr>
          <td  align="left">网站关键字<br>
            (Meta Keywords)</td>
          <td align="left" ><textarea name="d_keyword" id="d_keyword" cols="45" rows="5" class="text" ><{$default.keywords}></textarea></td>
        </tr>
        <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr>
          <td  align="left">网站描述<br>
            (Meta Description)</td>
          <td align="left" ><textarea name="d_description" id="d_description" cols="45" rows="5" class="text"><{$default.description}></textarea>
          </td>
        </tr>
        <tr>
          <td  align="right" width="17%" height="40">&nbsp;</td>
          <td align="left" ><input  class="btn" type="submit" name="submit" value="提交"></td>
        </tr>
      </table>
    </form>
  <{else}>
  <div class="bigboxhead">
    <div class="itemtitle">
        <h3>SEO管理</h3>
        <ul>
            <li><a href="?act=default"><span>默认SEO</span></a></li>
        </ul>
    </div>
  </div>
  <form action="" method="get">
        <table class="select_table">
            <tbody>
                <tr>
                    <td width="60">模块:</td>
                    <td class="yui-skin-sam" width="150">
                        <select name="module">
                            <option value="">---全部---</option>
                            <{foreach from=$module_list item=module}>
                                <option value="<{$module.module}>" <{if $smarty.get.module==$module.module}>selected<{/if}>><{$module.module_name}></option>
                            <{/foreach}>
                        </select>
                    </td>
                    <td><input id="search" type="image" src="<{$config.weburl}>/image/admin/search.gif" /></td>
                </tr>
            </tbody>
        </table>
  </form>
  <div class="bigboxbody">
    <form name="sysconfig" action="" method="post">
      <table width="100%" cellspacing="0">
        <tr>
          <td  align="left" >&nbsp;</td>
          <td align="left" >Title</td>
          <td align="left" >Keyword</td>
          <td align="left" >Description</td>
        </tr>
        <{foreach from=$seo_list item=list}>
        <tr>
          <td width="17%"  align="left" ><{$list.module_name}>-<{$list.action_name}></td>
          <td align="left" ><input class="text" name="title[<{$list.id}>]" type="text" id="title" value="<{$list.title}>" size="10"></td>
          <td align="left" ><input class="text" name="keywords[<{$list.id}>]" type="text" id="keyword" size="10" value="<{$list.keywords}>" /></td>
          <td align="left" ><input class="text" name="description[<{$list.id}>]" type="text" id="description" size="10" value="<{$list.description}>" /></td>
        </tr>
        <{/foreach}>
        <tr>
        
        <td colspan="4">
            <b>通用标签：（可使用整站的参数）</b><span class="bz">[tit]整站title  [key]整站keywords [des]整站description</span></td>
        </tr>
        <tr>
        
        <td colspan="4">
            <b>模块标签：</b><span class="bz">[title] 标题 [catname] 类别名 [keyword] 产品关键词  [brand]品牌</span></td>
        </tr>
        <tr>
          <td width="17%" height="40" align="right">&nbsp;</td>
          <td colspan="3" align="left" ><input  class="btn" type="submit" name="submit" value="提交"></td>
        </tr>
      </table>
    </form>
    <{/if}>
  </div>
</div>
</body>
</html>